﻿using Newtonsoft.Json;



namespace Base.Common {
    public class JsonHelper
    {
        /// <summary>
        /// 将对象序列化为JSON格式
        /// </summary>
        /// <param name="o">对象</param>
        /// <returns>json字符串</returns>
        public static string mySerializeObject(object o)
        {
            string json = JsonConvert.SerializeObject(o);
            return json;
        }
       

      
       
    }

}
